package com.masterclient.app.businessmodule.minemodule.point.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.masterclient.app.R;
import com.masterclient.app.businessmodule.minemodule.point.model.PointNotes;
import com.eoner.baselibrary.utils.Utils;

public class PointAdapter extends BaseQuickAdapter<PointNotes,BaseViewHolder>{
    public PointAdapter() {
        super(R.layout.point_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, PointNotes item) {

        helper.setText(R.id.sh_desc,item.getSh_desc());
        if("1".equals(item.getSh_type())){
            helper.setText(R.id.num,"+" + item.getSh_num());
        }else {
            helper.setText(R.id.num,"-" + item.getSh_num());
        }
        helper.setText(R.id.sh_time,item.getSh_time());
        Utils.setDin(helper.getView(R.id.num),mContext);

    }

}
